<template>
	<view class="mysearch-container">
		<button type="default" class="searchBtn" @click="open">
			
			<icon type="search" class="search-icon" size="14"></icon>
			<text class="search-text">智能匹配</text>
			<icon type="clear" size="14" class="clear-icon"></icon>
		</button>
		<view class="search-adress">
			<text class="text">长沙</text>
			<view class="triangle">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			open(){
				this.$emit('open')
			}
		}
	}
</script>

<style lang="scss">
.mysearch-container{
	border-top: 0.1px solid #d0d0d0;
	background-color: #3F51B5;
	width:100%;
	height:70rpx;
	display: flex;
	justify-content: space-around;
	padding-top: 10px;
	.search-adress{
		display: flex;
		justify-content: space-between;
		
		padding-right: 5px;
		.text{
			font-size: 12px;
			color: #FFFFFF;
		}
		.triangle{
			width: 0;
			height: 0;
			border-top: 5px solid #FFFFFF;
			border-left: 5px solid transparent;
			border-right: 5px solid transparent;
			margin-top: 6px;
			margin-left: 5px;
		}
	}
	.searchBtn{
		width: 600rpx;
		height: 50rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #e0e0e0;
		font-size: 12px;
		.search-text{
			flex: 1;
			text-align: left;
			padding-left: 10rpx;
		}
		
	}
}
</style>
